package com.cetool.autocms.pojo.request.sys;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * 新增角色权限请求实体
 *
 * @author 戴越
 * @date 2021/11/26
 */
@Data
@ApiModel("新增角色权限请求实体")
public class SaveRolePermissionRequest {

    /**
     * 角色id
     */
    @ApiModelProperty(value = "角色id", example = "2")
    @NotNull(message = "角色id不能为空")
    private Integer roleId;

    /**
     * 菜单id
     */
    @ApiModelProperty(value = "菜单id", dataType = "List", example = "[1,2,3]")
    @NotNull(message = "菜单id不能为空")
    private List<Integer> menuId;

}
